export default {

	saveOpenIdData(state,data){
		state.openid = data  //首页保存openid
	},




	saveMyVideoData(state,data){  // 保存已购买视频到列表页的数据
		state.my_video_data = data
	},


	saveSingleVideoNeedData(state,data){
		state.single_video_need_data = data   //  单个视频播放所需数据
	},


	saveVideoSinglePayData(state,data){
		state.video_single_pay_data = data  // 单个视频购买数据
	},

	
	saveVideoCommonData(state,data){
		state.video_all_pay_data = data.payinfo   // 全部视频购买数据
		state.video_indexto_allvideolist_data = data.routeinfo  // 视频主页到列表页的数据
	},





	saveWordIndexToSingleBookOrBuyData(state,data){
		state.word_indexto_singlebook_or_buy_data = data  // 从单词主页到列表页和购买的数据
	},


	saveIsThisBookHadBuy(state,data){
		state.is_thisbook_hadbuy = data   //当前课本是否已经购买
	},


	saveWordSingleBookToUnitWordsListData(state,data){
		state.word_singlebookto_unitwordslist_data = data  //单元列表到单元单词数据
	},


	saveSingleWordNeedWordData(state,data){
		state.singleword_need_data = data  //单个单词展示所需数据
	},






	savePathFrom(state,data){
		state.which_path_from = data  //保存从哪个路由进入的singleboook以确保返回时的路径正确
	},


	savePoints(state,data){
		state.points = data  //我的积分
	},









	saveTopData(state,data){
		state.top_distance = data  //单词主页位置保留
	}
	
}